package cn.hs.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import cn.hs.entity.UserCourse;

/**
* @author 35324
* @description 针对表【user_course】的数据库操作Mapper
* @createDate 2024-10-28 15:37:31
* @Entity cn.hs.entity.UserCourse
*/
public interface UserCourseMapper {

    int insertAll(UserCourse userCourse);

    int delete(@Param("userId") Integer userId,@Param("courseId") Integer courseId);

    List<UserCourse> findAll(Integer userId);
//    查询课程的收藏量
    Integer selectCountByCourseId(Integer id);
//    查询收藏是否村子
    Integer selectCountByUserIdAndCourseId(@Param("userId") Integer userId,@Param("courseId") Integer courseId);


}
